package com.lanswon.icc.admin.dao;

import com.lanswon.icc.admin.po.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMapper {
    int deleteByPrimaryKey(Integer roleId);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);

    List<String> queryRoleCodeByUserId(@Param("userId") Integer userId);

    List<Integer> queryRoleIdByUserId(@Param("userId") Integer userId);

    SysRole selectByRoleName(@Param("roleName")String roleName);

}